package com.example.thread.controller;

import com.example.thread.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description :
 * @Author : Bruce Lee
 * @CreateTime : 2024/3/1
 */

@Controller
@RequestMapping("/api")
public class TestController {

    @Autowired
    private AsyncService asyncService;

    @GetMapping("/test")
    public void test() throws InterruptedException {
        asyncService.sendMsg();
    }
}
